# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def authenticated?()
    not session[:user_id].nil?
  end

  def current_user
    @current_user ||= User.find(session[:user_id])
  end

  def libelle(lib)
    return lib.gsub("_", " ").capitalize
  end
end

